Optimal. Leaf size=121 \[ \frac {\sqrt {2} \sqrt {x^2+2} E\left (\tan ^{-1}(x)|\frac {1}{2}\right )}{\sqrt {x^2+1} \sqrt {\frac {x^2+2}{x^2+1}} (a-b)}-\frac {2 b \sqrt {x^2+1} \Pi \left (1-\frac {2 b}{a};\left .\tan ^{-1}\left (\frac {x}{\sqrt {2}}\right )\right |-1\right )}{a \sqrt {\frac {x^2+1}{x^2+2}} \sqrt {x^2+2} (a-b)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 121, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.107, Rules used = {541, 539, 411} \[ \frac {\sqrt {2} \sqrt {x^2+2} E\left (\tan ^{-1}(x)|\frac {1}{2}\right )}{\sqrt {x^2+1} \sqrt {\frac {x^2+2}{x^2+1}} (a-b)}-\frac {2 b \sqrt {x^2+1} \Pi \left (1-\frac {2 b}{a};\left .\tan ^{-1}\left (\frac {x}{\sqrt {2}}\right )\right |-1\right )}{a \sqrt {\frac {x^2+1}{x^2+2}} \sqrt {x^2+2} (a-b)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 411
Rule 539
Rule 541
Rubi steps
\begin {align*} \int \frac {\sqrt {2+x^2}}{\left (1+x^2\right )^{3/2} \left (a+b x^2\right )} \, dx &=-\frac {b \int \frac {\sqrt {2+x^2}}{\sqrt {1+x^2} \left (a+b x^2\right )} \, dx}{a-b}-\frac {\int \frac {\sqrt {2+x^2}}{\left (1+x^2\right )^{3/2}} \, dx}{-a+b}\\ &=\frac {\sqrt {2} \sqrt {2+x^2} E\left (\tan ^{-1}(x)|\frac {1}{2}\right )}{(a-b) \sqrt {1+x^2} \sqrt {\frac {2+x^2}{1+x^2}}}-\frac {2 b \sqrt {1+x^2} \Pi \left (1-\frac {2 b}{a};\left .\tan ^{-1}\left (\frac {x}{\sqrt {2}}\right )\right |-1\right )}{a (a-b) \sqrt {\frac {1+x^2}{2+x^2}} \sqrt {2+x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.47, size = 122, normalized size = 1.01 \[ \frac {\frac {2 i \sqrt {2} b \Pi \left (\frac {b}{a};i \sinh ^{-1}(x)|\frac {1}{2}\right )}{a}-i \sqrt {2} \Pi \left (\frac {b}{a};i \sinh ^{-1}(x)|\frac {1}{2}\right )+\frac {2 \sqrt {x^2+2} x}{\sqrt {x^2+1}}-i \sqrt {2} F\left (i \sinh ^{-1}(x)|\frac {1}{2}\right )+2 i \sqrt {2} E\left (i \sinh ^{-1}(x)|\frac {1}{2}\right )}{2 a-2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 16.69, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\sqrt {x^{2} + 2} \sqrt {x^{2} + 1}}{b x^{6} + {\left (a + 2 \, b\right )} x^{4} + {\left (2 \, a + b\right )} x^{2} + a}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {x^{2} + 2}}{{\left (b x^{2} + a\right )} {\left (x^{2} + 1\right )}^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 147, normalized size = 1.21 \[ \frac {\left (a \,x^{3}+2 a x +i \sqrt {x^{2}+2}\, \sqrt {x^{2}+1}\, a \EllipticE \left (\frac {i \sqrt {2}\, x}{2}, \sqrt {2}\right )-i \sqrt {x^{2}+2}\, \sqrt {x^{2}+1}\, a \EllipticPi \left (\frac {i \sqrt {2}\, x}{2}, \frac {2 b}{a}, \sqrt {2}\right )+2 i \sqrt {x^{2}+2}\, \sqrt {x^{2}+1}\, b \EllipticPi \left (\frac {i \sqrt {2}\, x}{2}, \frac {2 b}{a}, \sqrt {2}\right )\right ) \sqrt {x^{2}+1}\, \sqrt {x^{2}+2}}{\left (x^{4}+3 x^{2}+2\right ) \left (a -b \right ) a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {x^{2} + 2}}{{\left (b x^{2} + a\right )} {\left (x^{2} + 1\right )}^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\sqrt {x^2+2}}{{\left (x^2+1\right )}^{3/2}\,\left (b\,x^2+a\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________